﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ProTrack.Utility
{
    public static class StringHelper
    {
        public static string GetCurrentTime()
        {
            return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }
        public static DateTime GetTimeNow()
        {
            return DateTime.Now;
        }



        public static int[] SplitId(this string str)
        {
            var stringArray = str.Split(',');
            return Array.ConvertAll(stringArray, int.Parse); ;
        }

    }
}
